const Router = require('koa-router');
const { verifyJwt } = require('../middlewares/common.middleware');
const { handleUpload } = require('../middlewares/file.middleware');
const fileController = require('../controller/file.controller');
const router = new Router({ prefix: '/upload' });

router.post('/picture', verifyJwt, handleUpload, fileController.uploadPicture);

module.exports = router;
